package at.fhooe.stefanirndorfer.connectivity;

import at.fhooe.stefanirndorfer.labeling.Region;

public class Connection {

	private Region adjRegion;
	
	private float hf_gain;
	private float lf_gain;
	
	
	private double posX;
	private double posY;
	
	
	public Connection(Region adjRegion, float hf_gain, float lf_gain,
			double posX, double posY) {
		this.adjRegion = adjRegion;
		this.hf_gain = hf_gain;
		this.lf_gain = lf_gain;
		this.posX = posX;
		this.posY = posY;
	}
	
	
	
	/////////////////////
	///getters and setters
	/////////////////////
	
	public Region getAdjRegion() {
		return adjRegion;
	}
	public void setAdjRegion(Region adjRegion) {
		this.adjRegion = adjRegion;
	}
	public float getHf_gain() {
		return hf_gain;
	}
	public void setHf_gain(float hf_gain) {
		this.hf_gain = hf_gain;
	}
	public float getLf_gain() {
		return lf_gain;
	}
	public void setLf_gain(float lf_gain) {
		this.lf_gain = lf_gain;
	}
	public double getPosX() {
		return posX;
	}
	public void setPosX(double posX) {
		this.posX = posX;
	}
	public double getPosY() {
		return posY;
	}
	public void setPosY(double posY) {
		this.posY = posY;
	}



	public Connection copyConnection() {
		Connection c = new Connection(this.adjRegion, this.hf_gain, this.lf_gain, this.posX, this.posY);
		return c;
	}
	
	
}
